﻿<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

	<title>【顶部导航条】</title>

	<link href="../customer/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css" />
	<link href="../customer/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
	<link href="../customer/basic/css/demo.css" rel="stylesheet" type="text/css" />
	<link type="text/css" href="../customer/css/optstyle.css" rel="stylesheet" />
	<link type="text/css" href="../customer/css/style.css" rel="stylesheet" />

	<script type="text/javascript" src="../customer/basic/js/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="../customer/basic/js/quick_links.js"></script>

	<script type="text/javascript" src="../customer/AmazeUI-2.4.2/assets/js/amazeui.js"></script>
	<script type="text/javascript" src="../customer/js/jquery.imagezoom.min.js"></script>
	<script type="text/javascript" src="../customer/js/jquery.flexslider.js"></script>
	<script type="text/javascript" src="../customer/js/list.js"></script>

</head>
<body>
	<!--顶部导航条 -->
	<div class="am-container header">
		<ul class="message-l">
			<div class="topMessage">
				<div class="menu-hd">
					<s:if test="#session.customer">
						欢迎你，<s:property value="#session.customer.customerId"/>，<a href="Customer_CustomerExit.action">退出</a>
					</s:if>
					<s:else>
						<a href="CustomerLogin.jsp" target="_top" class="h">亲，请登录</a>
						<a href="Register.jsp" target="_top">免费注册</a>
					</s:else>
				</div>
			</div>
		</ul>
		<ul class="message-r">
			<div class="topMessage home">
				<div class="menu-hd"><a href="../customer/index.jsp" target="_top" class="h">商城首页</a></div>
			</div>
			<div class="topMessage my-shangcheng">
				<s:if test="#session.customer">
					<div class="menu-hd MyShangcheng"><a href="CustomerInfo.jsp" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
				</s:if>
				<s:else>
					<div class="menu-hd MyShangcheng"><a href="CustomerLogin.jsp" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
				</s:else>
			</div>
			<div class="topMessage mini-cart">
				<div class="menu-hd"><a id="mc-menu-hd" href="showShoppingCarAction.action" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span></a></div>
			</div>
			<!-- 
			<div class="topMessage favorite">
				<div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
			 -->
		</ul>
		</div>
	
		<!--悬浮搜索框-->

	<div class="nav white">
			<div class="logo"><img src="../customer/images/logo.png" /></div>
			<div class="logoBig">
				<li><a href="../customer/index.jsp" target="_top"><img src="../customer/images/logo.png" /></a></li>
			</div>
			<div class="search-bar pr">
			
				<input id="search" name="keyword" type="text" placeholder="搜索" autocomplete="off"  value='<s:property value="#session.keyword"/>' class="search" onkeypress="search()">
				<input id="ai-topsearch" class="submit am-btn"  value="搜索" index="1" type="submit" onclick="clicksearch()">
			
			</div>
		</div>
	
		<div class="clear"></div>
	          <b class="line"></b>
		<div class="listMain">
	
			<!--分类-->
		<div class="nav-table">
		   <div class="long-title"><span class="all-goods">全部分类</span></div>
		   <div class="nav-cont">
				<ul>
					<li class="index"><a href="../customer/index.jsp">首页</a></li>
                   <!--  <li class="qc"><a href="#">活动</a></li> -->
                    <li class="qc"><a href="#">品牌简介</a></li>
				</ul>
			</div>
		</div>
	</div>
<script type="text/javascript">
	function search(){
		if(event.keyCode==13){
			var val=document.getElementById("search").value;
			window.location="FurnitureInfo_searchingByKeyMapToCustomer.action?keyword="+encodeURI(encodeURI(val));
		}
	}
	function clicksearch(){
		var val=document.getElementById("search").value;
		window.location="FurnitureInfo_searchingByKeyMapToCustomer.action?keyword="+encodeURI(encodeURI(val));
		}
</script>
</body>
</html>